﻿using System;
using System.Collections.Generic;
using System.Text;
using ZoneFiveSoftware.Common.Visuals;
using ZoneFiveSoftware.Common.Visuals.Fitness;

#if DEBUG

namespace STCommon.NUnit
{
    class NUnitRunnerViewExtension : IExtendViews
    {
#region IExtendViews Members

        public IList<IView> Views
        {
            get
            {
                IList<IView> views = new List<IView>();

                // Check if we have a local instance of the test manager, in which case
                //  We can add the view since we are ownner of the manager
                if (m_RunnerView == null && NUnitTestManager.LocalInstance != null)
                {
                    m_RunnerView = new NUnitRunnerView();

                    views.Add(m_RunnerView);
                }

                return views;
            }
        }

#endregion

        private NUnitRunnerView m_RunnerView = null;
    }
}

#endif